﻿function CopyLocHref() {
    if (window.clipboardData) {
        window.clipboardData.setData("Text", location.href);
        alert("文章链接及标题已复制到剪贴板，您可以直接粘贴到你的QQ、MSN等聊天输入框中，群发给您的好友！");
    }
    else {
        var flashcopier = 'flashcopier';
        if (!document.getElementById(flashcopier)) {
            var divholder = document.createElement('div');
            divholder.id = flashcopier;
            document.body.appendChild(divholder);
        }
        document.getElementById(flashcopier).innerHTML = '';
        var divinfo = '<embed src="http://res.kaoyee.com/Resource/Common/Flash/clipboard.swf" FlashVars="clipboard=' + encodeURIComponent(textit) + '" width="0" height="0" type="application/x-shockwave-flash"></embed>';
        document.getElementById(flashcopier).innerHTML = divinfo;
        alert("文章链接及标题已复制到剪贴板，您可以直接粘贴到你的QQ、MSN等聊天输入框中，群发给您的好友！");
    }
}
